<?php

/*

  Victory	$4

  Worth 1 Victory for every 10 cards in your deck (rounded down).

 */

class Gardens extends Card implements iVictory, iKingdom, iBasic {

    public function __construct() {
        parent::__construct("Gardens", 4);
        $this->undoPlay = false;
        $this->undoBuy = true;
    }

    public function getDescription() {
        return array(
            "Worth 1 Victory for every 10 cards in your deck (rounded down).");
    }
    
        public function getDisplayName($quantity = 1) {
        if ($quantity == 1) {
            return "Gardens";
        }
        return $quantity . " Gardens";
    }
    
    public function play(Game $game, $isRealCard) {
    }

    public function getVictoryPoints(Game $game, $name) {
        $totalCards = $game->getTotalCardsNum($name);
        return floor($totalCards / 10);
    }

}
?>